<template>
<div>
    <h2 style="text-align: center;">借款项目列表——用户借款</h2> 
    <BorrowCommon v-slot="info">
        <a href="#" @click="UserBorrow(info.id)">借款</a>
    </BorrowCommon>
</div>
</template>

<script setup lang="ts">
import BorrowCommon from '../00012/BorrowCommon.vue'
import {useRouter} from 'vue-router'

//创建路由实例
const router=useRouter();

//完成借款跳转
const UserBorrow=(Bid:number)=>{
    router.push({
        name:"AddUserBorrow",
        params:{
            Bid:Bid
        }
    })
}
</script>